import request from '@/utils/request'

export function listSociety(query) {
  return request({
    url: '/api/adminBiz/societies/list',
    method: 'post',
    data: query
  })
}

export function addSociety(data) {
  return request({
    url: '/api/adminBiz/societies/add',
    method: 'post',
    data: data
  })
}

export function deleteSociety(data) {
  return request({
    url: '/api/adminBiz/societies/delete',
    method: 'post',
    data: data
  })
}

export function updateSociety(data) {
  return request({
    url: '/api/adminBiz/societies/update',
    method: 'post',
    data: data
  })
}

export function uploadImg(data) {
  return request({
    url: '/api/adminBiz/upload/file',
    method: 'post',
    data: data
  })
}
